#include "BlogPreview.h"

BlogPreview::BlogPreview(const QString &title,
                         const QString &summary,
                         const QString &author,
                         const QString &time,
                         const int &readCount,
                         const int &likeCount,
                         const int &commentCount,
                         const int &favoriteCount,
                         const QPixmap &cover)
{
    this->title = title;
    this->summary = summary;
    this->author = author;
    this->time = time;
    this->readCount = readCount;
    this->likeCount = likeCount;
    this->commentCount = commentCount;
    this->favoriteCount = favoriteCount;
    this->cover = cover;
}
